home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 April: Mac OS SDK / Dev.CD Apr 98 SDK2.toast / Development Kits (Disc 2) / ScriptX / Documentation / Code Examples from Docs / compguid / printing / textprn / loadme.sx next >
Encoding:
Text File  |  1996-05-21  |  614 b   |  23 lines  |  [TEXT/ttxt]

  1. <<<
  2. -- Filename:
  3. --      loadme.sx
  4.  
  5. -- Other files required
  6. --        scrllprs.sx
  7. --        textprin.sx
  8.  
  9. -- Purpose:
  10. --         Test that prints Text in a Window. This modifies the Scrolling Presenter
  11. --        test to add printing capabilities. Load in the script and choose Print...
  12. --        from the File menu when the Window comes up to print the text.
  13.  
  14. -- Load in the printing module
  15. if (not isdefined Printer) do (process (new loader) "loadable/printing")
  16.  
  17. fileIn theScriptDir name:"textprin.sx"
  18. fileIn theScriptDir name:"scrllprs.sx"
  19.  
  20. enableitem thetitlecontainer.systemmenubar @print
  21.  
  22. -- Choose Print... from the File menu to print
  23. >>>